﻿<UserControl x:Class="MediaAssistant.Controls.MovieActionToolBar.MovieActionToolBarView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d"
             Background="{StaticResource BodyBackground}">
  <Border DockPanel.Dock="Top" Height="35" Background="#ECECEC">
    <StackPanel DockPanel.Dock="Left" HorizontalAlignment="Left" Orientation="Horizontal" Height="30">
      <Button  Width="30" Height="30" Margin="5,0" Command="{Binding DataSource.PlayMovieCommand}"
               ToolTip="Play movie with default player"
               Style="{StaticResource ImageButtonStyle}">
        <ContentControl Content="{StaticResource PlayMovieImage}"/>
      </Button>
      <Button  Width="30" Height="30" Margin="5,0" ToolTip="Show movie in windows explorer"
               Command="{Binding DataSource.ShowMovieInWindowsExplorerCommand}"
               Style="{StaticResource ImageButtonStyle}">
        <ContentControl Content="{StaticResource MovieFolderImage}"/>
      </Button>
      <Button  Width="30" Height="30" Margin="5,0" Command="{Binding DataSource.ShowMovieInIMDBCommand}" ToolTip="Show movie in IMDB web site"
               Style="{StaticResource ImageButtonStyle}">
        <ContentControl Content="{StaticResource IMDBImage}"/>
      </Button>
      <Separator BorderThickness="2"/>
      <ToggleButton x:Name="starButton" Width="30" Height="30" ToolTip="Mark as favorite movie"
                        IsChecked="{Binding DataSource.SelectedMovie.IsStarred}"
                        Style="{StaticResource opacityToggleButton}"
                        Command="{Binding DataSource.SaveMovieStateCommand}">
        <ContentControl Content="{StaticResource StarImage}"/>
      </ToggleButton>
      <ToggleButton Width="30" Height="30" Margin="10,0,0,0" ToolTip="Move to wish list"
                        IsChecked="{Binding DataSource.SelectedMovie.IsInWishList}"
                        Style="{StaticResource opacityToggleButton}"
                        Command="{Binding DataSource.SaveMovieStateCommand}">
        <ContentControl Content="{StaticResource WishListImage}"/>
      </ToggleButton>
      <ToggleButton Width="30" Height="30" Margin="10,0,10,0" ToolTip="Mark as watched movie"
                        IsChecked="{Binding DataSource.SelectedMovie.Watched}"
                        Style="{StaticResource opacityToggleButton}"
                        Command="{Binding DataSource.SaveMovieStateCommand}">
        <ContentControl Content="{StaticResource WatchListImage}"/>
      </ToggleButton>
   </StackPanel>
  </Border>
</UserControl>
